﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000C5 RID: 197
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AssistSimpleInfo : IMessage<AssistSimpleInfo>, IMessage, IEquatable<AssistSimpleInfo>, IDeepCloneable<AssistSimpleInfo>, IBufferMessage
	{
		// Token: 0x17000278 RID: 632
		// (get) Token: 0x060008BB RID: 2235 RVA: 0x00018EF1 File Offset: 0x000170F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AssistSimpleInfo> Parser
		{
			get
			{
				return AssistSimpleInfo._parser;
			}
		}

		// Token: 0x17000279 RID: 633
		// (get) Token: 0x060008BC RID: 2236 RVA: 0x00018EF8 File Offset: 0x000170F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AssistSimpleInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700027A RID: 634
		// (get) Token: 0x060008BD RID: 2237 RVA: 0x00018F0A File Offset: 0x0001710A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AssistSimpleInfo.Descriptor;
			}
		}

		// Token: 0x060008BE RID: 2238 RVA: 0x00018F11 File Offset: 0x00017111
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AssistSimpleInfo()
		{
		}

		// Token: 0x060008BF RID: 2239 RVA: 0x00018F1C File Offset: 0x0001711C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AssistSimpleInfo(AssistSimpleInfo other) : this()
		{
			this.pos_ = other.pos_;
			this.dressedSkinId_ = other.dressedSkinId_;
			this.avatarId_ = other.avatarId_;
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060008C0 RID: 2240 RVA: 0x00018F70 File Offset: 0x00017170
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AssistSimpleInfo Clone()
		{
			return new AssistSimpleInfo(this);
		}

		// Token: 0x1700027B RID: 635
		// (get) Token: 0x060008C1 RID: 2241 RVA: 0x00018F78 File Offset: 0x00017178
		// (set) Token: 0x060008C2 RID: 2242 RVA: 0x00018F80 File Offset: 0x00017180
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Pos
		{
			get
			{
				return this.pos_;
			}
			set
			{
				this.pos_ = value;
			}
		}

		// Token: 0x1700027C RID: 636
		// (get) Token: 0x060008C3 RID: 2243 RVA: 0x00018F89 File Offset: 0x00017189
		// (set) Token: 0x060008C4 RID: 2244 RVA: 0x00018F91 File Offset: 0x00017191
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DressedSkinId
		{
			get
			{
				return this.dressedSkinId_;
			}
			set
			{
				this.dressedSkinId_ = value;
			}
		}

		// Token: 0x1700027D RID: 637
		// (get) Token: 0x060008C5 RID: 2245 RVA: 0x00018F9A File Offset: 0x0001719A
		// (set) Token: 0x060008C6 RID: 2246 RVA: 0x00018FA2 File Offset: 0x000171A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x1700027E RID: 638
		// (get) Token: 0x060008C7 RID: 2247 RVA: 0x00018FAB File Offset: 0x000171AB
		// (set) Token: 0x060008C8 RID: 2248 RVA: 0x00018FB3 File Offset: 0x000171B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x060008C9 RID: 2249 RVA: 0x00018FBC File Offset: 0x000171BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AssistSimpleInfo);
		}

		// Token: 0x060008CA RID: 2250 RVA: 0x00018FCC File Offset: 0x000171CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AssistSimpleInfo other)
		{
			return other != null && (other == this || (this.Pos == other.Pos && this.DressedSkinId == other.DressedSkinId && this.AvatarId == other.AvatarId && this.Level == other.Level && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060008CB RID: 2251 RVA: 0x00019038 File Offset: 0x00017238
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Pos != 0U)
			{
				num ^= this.Pos.GetHashCode();
			}
			if (this.DressedSkinId != 0U)
			{
				num ^= this.DressedSkinId.GetHashCode();
			}
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060008CC RID: 2252 RVA: 0x000190C2 File Offset: 0x000172C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060008CD RID: 2253 RVA: 0x000190CA File Offset: 0x000172CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060008CE RID: 2254 RVA: 0x000190D4 File Offset: 0x000172D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Pos != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Pos);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Level);
			}
			if (this.DressedSkinId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.DressedSkinId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060008CF RID: 2255 RVA: 0x00019168 File Offset: 0x00017368
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Pos != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Pos);
			}
			if (this.DressedSkinId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DressedSkinId);
			}
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060008D0 RID: 2256 RVA: 0x000191F0 File Offset: 0x000173F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AssistSimpleInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Pos != 0U)
			{
				this.Pos = other.Pos;
			}
			if (other.DressedSkinId != 0U)
			{
				this.DressedSkinId = other.DressedSkinId;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060008D1 RID: 2257 RVA: 0x00019268 File Offset: 0x00017468
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060008D2 RID: 2258 RVA: 0x00019274 File Offset: 0x00017474
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 24U)
					{
						this.Pos = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.AvatarId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
					if (num == 88U)
					{
						this.DressedSkinId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000340 RID: 832
		private static readonly MessageParser<AssistSimpleInfo> _parser = new MessageParser<AssistSimpleInfo>(() => new AssistSimpleInfo());

		// Token: 0x04000341 RID: 833
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000342 RID: 834
		public const int PosFieldNumber = 3;

		// Token: 0x04000343 RID: 835
		private uint pos_;

		// Token: 0x04000344 RID: 836
		public const int DressedSkinIdFieldNumber = 11;

		// Token: 0x04000345 RID: 837
		private uint dressedSkinId_;

		// Token: 0x04000346 RID: 838
		public const int AvatarIdFieldNumber = 9;

		// Token: 0x04000347 RID: 839
		private uint avatarId_;

		// Token: 0x04000348 RID: 840
		public const int LevelFieldNumber = 10;

		// Token: 0x04000349 RID: 841
		private uint level_;
	}
}
